<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Basic Layout - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="../../css/base.css" />
	<link id="easyuiTheme" rel="stylesheet" type="text/css" href="../../easy-ui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../easy-ui/themes/icon.css">
	<script type="text/javascript" src="../../easy-ui/jquery.min.js"></script>
	<script type="text/javascript" src="../../easy-ui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../easy-ui/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="../../js/base.js" ></script>
</head>


<body class="easyui-layout" data-options="fit:true" style="overflow:hidden;">
	
		
	
	
	
		
		
		<div data-options="region:'south',border:false," style="height:40px;text-align:center;">
		
									  <table style="width:100%;margin-top:8px;" >
													<tr>
													<td style="align:center;">
														<a href='javascript:void(-1);' onclick="baseFormSubmit();"; class="easyui-linkbutton" data-options="iconCls:'icon-save'">确定</a>&nbsp;&nbsp;
														<a href='javascript:void(-1);' onclick="baseFormReset();";  class="easyui-linkbutton" data-options="iconCls:'icon-back'">重置</a>
													</td>
													</tr>
										</table>
		</div>	
		
		
		
		
		<div data-options="region:'center',border:true,">
		
		<!-- the dataForm start  -->
		<form id="baseForm" method="post" name="baseForm" target="hiddenFrame" style="margin:0px;padding:5px;overflow:hidden;">
			
			<input  name="id"  id="id" type="hidden" ></input>
			
			
  			<table border="0" cellpadding="0" cellspacing="3" class="data-table">
			
								<!-- 表格的布局控制 -->
								<tr class="data-table-base-tr">
								<td  class="data-table-label" >
								</td>
								<td id="table_input_base" >
								</td>
								
								<td  class="data-table-right-margin"></td>
								</tr>
								<!-- 表格的布局控制 结束 -->	
			
			
				<tr>
				<td  class="data-table-label">
				
				登陆密码：<font color="#FF0000">*</font>
				</td>
				 <td class="data-table-input">
				<input  name="password" id="password" style="width:100%;" type="password"  class="easyui-validatebox textbox" data-options="required:true,novalidate:true"
				  ></input>
				</td>
				
				</tr>
				
				<tr>
				<td  class="data-table-label" >
				
				密码重复：<font color="#FF0000">*</font>
				</td>
				 <td>
				<input  id="password1" style="width:100%;" type="password" class="easyui-validatebox textbox" data-options="required:true,novalidate:true" ></input>
				</td>
				</tr>
				
				
				
				
				
             </table>

			</form>
			
			<!-- the dataForm end  -->
			
			
		</div>
	
	

	<script type="text/javascript">
	
	
	 function initPage(fatherId){
			
			parent.showProgressing();
			baseFormClear();	
			initSetPassword(null);
		}
		
		window.onload=function(){
			 initPage();
		}
		 	
		var responseResultPage;
		
		function initSetPassword(responseResult){
		
			setFormDefault(responseResult); 
			
			document.getElementById("id").value=parent.parent.mainFrame_id.selections[0].id;
			document.getElementById("password").value="";
			document.getElementById("password1").value="";
			
			responseResultPage=responseResult;
			
			parent.closeProgressing(); 
			 
		}
		
		
		function baseFormSubmit(){
			var flag= $("#baseForm").form('enableValidation').form('validate');
			if(flag){
				if($('#password').val() != $('#password1').val()){
		    		parent.$.messager.alert('消息提示','两次密码输入不一致','error');
		    		return;
		    	}
				parent.showProgressing();
				sendRequestAjax('../../sysuser/updateSave.do?responseFunction=setPassword',setPassword);
			}
		}
		
		
		function baseFormReset(){
			initSetPassword(responseResultPage);
		}
		
		
		
		function setPassword(responseResult){
			
			parent.closeProgressing();

			
			if(responseResult.slide_msg_key==1){
				parent.parent.showSlideMsg(responseResult.slide_msg_message_key);
			}
			
			curWinClose();
		}
		
		//form表单 提交 重置 提交后响应处理结束 ------------
	
		
		
		
	</script>


</body>
</html>